package com.mikeli.javacourse.lesson5;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringXmlTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationcontext.xml");
        Klass klass = (Klass) applicationContext.getBean("klass");
        System.out.println(klass);
        klass = (Klass) applicationContext.getBean("klass1");
        System.out.println(klass);
        klass = (Klass) applicationContext.getBean("klass2");
        System.out.println(klass);
    }
}
